﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Smart Mosaic</title>
    <link href="css/Defaultcss.css" rel="stylesheet" type="text/css" />
	
</head>
<body>

    <form id="form1" runat="server">
     <!--실버라이트를 위한 스크립터-->
		<asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <!--body전체를 감싸는 레이아웃-->
        <div id="Container">
        	<div id="footer">
        	   <img alt="" height="36" src="img/title.png" width="279" />
        	</div>
        	<div id="CoverFlow">
        	
            </div>
            <div id="SubContainer">
               <div id="leftContent">
                  <div id="search">
                     <div id="searchtable">
                        <div style="float:left; font-family:맑은 고딕;font-weight:bold;font-size:15pt;color:white">Search</div>
                        <div style="float:right; margin-top:3px;">
					        <img alt="" height="24" src="img/btSearch.png" width="25" /></div>
                        <div id="searchtextbox"><asp:TextBox ID="tb_search" runat="server" BorderStyle="None" Width="200" CssClass="tbsearchstyle"></asp:TextBox></div>
                     </div>
                  </div>
                  <div id="Content">
					  <asp:Repeater ID="rptContent" runat="server" DataSourceID="sdsContent">
                  <HeaderTemplate></HeaderTemplate>
                  <ItemTemplate><table width="704px" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                  <td id="ContentPhoto">
                  <img alt="" width="160" height="120" src="<%#Eval("Thumbnail").ToString() %>"/>
                  </td>
                  <td id="ContentList">
                  <table>
                  <tr>
                  <td colspan="2" style="font-family:맑은 고딕;font-size:15pt;color:#FFB600;font-weight:bold; height:25px"><%#Eval("Subject").ToString() %></td>
                  </tr>
                  <tr>
                  <td colspan="2" style="font-family:굴림; font-size:11pt;color:white;height:18px"><%#Eval("Content").ToString() %></td>
                  </tr>
                  <tr style="font-family:Arial; font-size:12pt; color:white;font-weight:bold">
                  <td>Hit : <%#Eval("Hit").ToString() %></td>
                  <td style="color:#1aa4cc"><%#Eval("WriterId").ToString() %></td>
                  </tr>
                  </table>
                  </td>
                  </tr>
                  <tr>
                  <td colspan="2" style="height:40px;"></td>
                  </tr>
                  </table></ItemTemplate>
                  <FooterTemplate>
                  </FooterTemplate>
                  	  </asp:Repeater>
                  </div>
				   <asp:SqlDataSource ID="sdsContent" runat="server" ConnectionString="<%$ ConnectionStrings:SmartMosaicConnectionString %>"
                                SelectCommand="SELECT Top 5 [UID], [WriteTime], [Subject], [WriterId],[Content],[Hit],[Thumbnail] FROM [DeepZoomList] ORDER BY [UID] DESC">
                  </asp:SqlDataSource>
               </div>
               <div id="rightContent">
               <div id="login">
				   <asp:LoginView ID="LoginView1" runat="server">
                        <AnonymousTemplate>
                            <div id="login_1">
                                <div id="innerlogin">
                                <table cellpadding="0px" cellspacing="0px">
                                <tr><td><asp:TextBox ID="txtId" runat="server" Width="60px" Height="14px" TabIndex="1" BorderStyle="Solid"
                                                BorderColor="#8e999b" CssClass="unwatermarked"></asp:TextBox>
                                            <act:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="txtId"
                                                WatermarkText="아이디" WatermarkCssClass="watermarked">
                                            </act:TextBoxWatermarkExtender></td>
                                            <td><asp:CheckBox ID="RememberMe" runat="server" BorderColor="#8e999b" Text="ID 저장" Font-Size="7pt"/></td></tr>
                                <tr><td><asp:TextBox ID="txtPwd" runat="server" Width="60px" BorderStyle="Solid" BorderColor="#8e999b"
                                                Height="14px" TextMode="Password" TabIndex="2" CssClass="unwatermarked"></asp:TextBox>
                                            <act:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" runat="server" TargetControlID="txtPwd"
                                                WatermarkText="비밀번호" WatermarkCssClass="watermarked">
                                            </act:TextBoxWatermarkExtender></td>
                                            <td><asp:ImageButton ID="ibLogin" runat="server" ImageUrl="img/btlogin.png" OnClick="ibLogin_Click"
                                                ValidationGroup="Login" /></td></tr>
                                <tr style="padding-top:3px;"><td colspan="2"><img alt="" height="24" src="img/login_line.png" style="height:2px; width:136px" /></td></tr>
                                <tr style="padding-top:3px;"><td id="register_btn"><a href="register.aspx">회원가입</a></td><td style="font-size:7pt;">ID/PW 찾기</td></tr>
                                </table>
                                                                    
                                </div>
                            </div>
                        </AnonymousTemplate>
                        <LoggedInTemplate>
                            <div id="loginview"><div id="innerloginview">
                            <table><tr><td colspan="2"> <asp:LoginName ID="LoginName1" runat="server" FormatString="{0}님, 반갑습니다." /></td></tr>
                            <tr><td><asp:ImageButton ID="ibmodifymember" runat="server" ImageUrl="img/btmodify.png" /></td>
                            <td><asp:ImageButton ID="iblogout" runat="server" ImageUrl="img/btlogout.png" OnClick="iblogout_Click" /></td></tr>
                            </table>
                                 </div>
                            </div>
                        </LoggedInTemplate>
                    </asp:LoginView>
               </div>
               <div style="margin-top:30px;"><center><a href="photowrite.aspx" onmouseover='Image01.src="img/btUpload_hover.png"' onmouseout='Image01.src="img/btUpload.png"'>
                   <img src="img/btUpload.png" name='Image01' alt='업로드' border="0"/></a></center></div>
               </div>
            </div>
        </div>
        
    </form>
  
</body>
</html>
